﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Chat.Client
{
    [Serializable]
    public class SendMessageCmd : ClientCmd
    {
        private NickName SendTo { get; set; }
        private string Message { get; set; }

        public SendMessageCmd(MessageData msgData) : base(msgData.Sender)
        {
            SendTo = msgData.To;
            Message = msgData.Message;
        }

        public MessageData MessageData
        {
            get
            {
                return new MessageData(SendTo, Message, Sender);
            }
        }
    }
}
